<%@page import="com.kaishengit.entity.Project"%>
<%@page import="com.kaishengit.entity.Goal"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title>公司项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
</head>
<body class="body">
	
	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">
				<a class="brand" href="#">公司项目管理系统-PMS</a>
			</div>
		</div>
	</div>
	<% 
	request.setCharacterEncoding("UTF-8");
	Project p = new Project();
	p = (Project)request.getAttribute("project");
	%>
	
	<div class="container">
	  <div class="row">
		<div class="span3">
			<div style="padding: 8px 0;" class="well">
				<ul class="nav nav-list">
				  <li class="nav-header"><%=p.getProjectName() %></li>
				  <li class="divider"></li>
				  <li><a href="project.jspx?projectid=<%=p.getId()%>"><i class="icon-home"></i>最新动态</a></li>
				  <li class="active">
					<a href="goal.jsp"><i class="icon-white icon-flag"></i>目标</a>
				  </li>
				  <li><a href="document.jsp"><i class="icon-folder-open"></i>资料库</a></li>
				  <li><a href="file.jsp"><i class="icon-file"></i>文件共享</a></li>
				  <li><a href="contact.jsp"><i class="icon-user"></i>联系人</a></li>
				  <li><a href="idea.jsp"><i class="icon-fire"></i>想法</a></li>
				</ul>
			</div>
		</div>
		<div class="span9">
			<div class="btn-group" style="float:right">
	            <a href="new_goal.jspx"><i class="icon-plus"></i>添加新目标</a>&nbsp|
	            <a href="goal_note.jspx"><i class="icon-zoom-in"></i>浏览所有任务</a>
        	</div>
			<div class="clear"></div>
	<% 
		
		List<Goal> glist = new ArrayList<Goal>();
		glist = (List<Goal>)request.getAttribute("goallist");
		for(Goal g:glist){
	%>
			<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
				<li class="active">
					<a href="task.html"><i class="icon-th"></i><%=g.getGoalName() %></a>
				</li>
				<li style="float:right"><i class="icon-edit"></i><a href="edit_goal.html" class="link-black">编辑</a></li>
			</ul>
			<div class="wall">
				<p><%=g.getDescription() %></p>
				<div class="progress progress-danger">
					<div class="bar" style="width: <%=g.getDangqianjindu()%>;">已完成<%=g.getDangqianjindu() %></div>
				</div>
			</div>
			
		<%} %>	
		</div>
	  </div>
	</div>
</body>
</html>